package com.mzz.structure.decorator;

/**
 * 抽象装饰器类
 * @author xushijian
 * @date 18/6/7 下午1:49
 */
public abstract class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        System.out.println("装饰器类执行 draw ....");
        decoratedShape.draw();
    }
}
